<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>简单的登录认证</title>
</head>
<body>
<!--
	<h1>Spring Boot的简单登录认证</h1>
	账号：<input name="account" value="" />
	密码：<input type="password" name="password"  value="" />
	<input type="button" value="登录" onclick="localhost:8080/login?account='${account}'" />
-->

<form action="#" th:action="@{/login}" th:object="${user}" method="post">
	<p><input type="text" th:field="*{id}" /></p>
	<p>用户名: <input type="text" th:field="*{account}" /></p>
	<p>密&nbsp;码: <input type="password" th:field="*{password}" /></p>
	<p><input type="submit" value="提交" /> <input type="reset" value="重置" /></p>
</form>
</body>
</html>